package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleCommentDto;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.mess.ArticleVisitStreamMess;

/**
 * <p>
 * 文章信息表，存储已发布的文章 服务类
 * </p>
 *
 * @author itheima
 */
public interface ApArticleService extends IService<ApArticle> {

    ResponseResult loadArticle(ArticleHomeDto dto, int type);


    ResponseResult loadArticle2(ArticleHomeDto dto,  int type,boolean isFirst);


    ResponseResult saveArticle(ArticleDto dto);

    public PageResponseResult findNewsComments(ArticleCommentDto dto);

    //实时更新数据
    void updateScore(ArticleVisitStreamMess articleVisitStreamMess);
}
